<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
  <meta name="viewport"
        content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=no">
    <title>抖动起来</title>
</head>
<body>
<div id="app">
  <jitter :start.sync="beginZ" :range="{ z: 10 }" class="form-group">
    <label class="form-title">密码</label>
    <input class="form-control" type="password" placeholder="密码"/>
  </jitter>
  <button @click="jitterZ">垂直屏幕抖起来</button>
  <hr/>

  <jitter :start.sync="beginX" :range="{ x: 10 }" class="form-group">
    <label class="form-title">密码</label>
    <input class="form-control" type="password" placeholder="密码"/>
  </jitter>
  <button @click="jitterX">水平抖起来</button>
  <hr/>

  <jitter :start.sync="beginY" :range="{ y: 10 }" class="form-group">
    <label class="form-title">密码</label>
    <input class="form-control" type="password" placeholder="密码"/>
  </jitter>
  <button @click="jitterY">垂直抖起来</button>
  <hr/>

  <jitter :start.sync="beginXY" :range="{ x: 10, y: 10 }" class="form-group">
    <label class="form-title">密码</label>
    <input class="form-control" type="password" placeholder="密码"/>
  </jitter>
  <button @click="jitterXY">水平垂直抖起来</button>
</div>
<script src="https://cdn.bootcss.com/vue/2.5.2/vue.min.js"></script>
</body>
</html>
